home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / EasyPHP-2.0b1-setup.exe / {app} / phpmyadmin / libraries / config.default.php < prev    next >
Encoding:
PHP Script  |  2006-11-18  |  38.5 KB  |  854 lines

  1. <?php
  2.  
  3. /* !!! DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!! */
  4.  
  5. /* $Id: config.default.php 9715 2006-11-17 09:52:52Z nijel $ */
  6. // vim: expandtab sw=4 ts=4 sts=4:
  7.  
  8. /**
  9.  * phpMyAdmin default configuration, you can copy values from here to your
  10.  * config.inc.php
  11.  *
  12.  * All directives are explained in Documentation.html
  13.  */
  14.  
  15.  
  16. /**
  17.  * Your phpMyAdmin URL.
  18.  *
  19.  * Complete the variable below with the full url ie
  20.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  21.  *
  22.  * It must contain characters that are valid for a URL, and the path is
  23.  * case sensitive on some Web servers, for example Unix-based servers.
  24.  *
  25.  * In most cases you can leave this variable empty, as the correct value
  26.  * will be detected automatically. However, we recommend that you do
  27.  * test to see that the auto-detection code works in your system. A good
  28.  * test is to browse a table, then edit a row and save it.  There will be
  29.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  30.  */
  31. $cfg['PmaAbsoluteUri'] = '';
  32.  
  33. /**
  34.  * Disable the default warning that is displayed on the DB Details Structure page if
  35.  * any of the required Tables for the relationfeatures could not be found
  36.  */
  37. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  38.  
  39. /**
  40.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  41.  * at least one server configuration uses 'cookie' auth_type, enter here a
  42.  * passphrase that will be used by blowfish. The maximum length seems to be 46
  43.  * characters.
  44.  */
  45. $cfg['blowfish_secret'] = '';
  46.  
  47. /**
  48.  * Server(s) configuration
  49.  */
  50. $i = 0;
  51. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use
  52. // $cfg['Servers'][0]. You can disable a server config entry by setting host
  53. // to ''. If you want more than one server, just copy following section
  54. // (including $i incrementation) serveral times. There is no need to define
  55. // full server array, just define values you need to change.
  56. $i++;
  57. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  58. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  59. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  60. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  61. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  62. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  63.                                                     // (requires PHP >= 4.3.0)
  64. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  65.                                                     // (this user must have read-only
  66. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  67.                                                     // and "mysql/db" tables).
  68.                                                     // The controluser is also
  69.                                                     // used for all relational
  70.                                                     // features (pmadb)
  71. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  72. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  73. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  74.                                                     // with 'config' auth_type)
  75. $cfg['Servers'][$i]['nopassword']    = FALSE;       // Whether to try to connect without password
  76. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  77.                                                     // this db is displayed in left frame
  78.                                                     // It may also be an array of db-names, where sorting order is relevant.
  79. $cfg['Servers'][$i]['hide_db']       = '';          // Database name to be hidden from listings
  80. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  81.  
  82. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  83.                                                     // (see scripts/create_tables.sql)
  84.                                                     //   - leave blank for no support
  85.                                                     //     DEFAULT: 'phpmyadmin'
  86. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  87.                                                     //   - leave blank for no bookmark support
  88.                                                     //     DEFAULT: 'pma_bookmark'
  89. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  90.                                                     //   - leave blank for no relation-links support
  91.                                                     //     DEFAULT: 'pma_relation'
  92. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  93.                                                     //   - leave blank for no display fields support
  94.                                                     //     DEFAULT: 'pma_table_info'
  95. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  96.                                                     //   - leave blank for no PDF schema support
  97.                                                     //     DEFAULT: 'pma_table_coords'
  98. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  99.                                                     //   - leave blank if you don't want to use this
  100.                                                     //     DEFAULT: 'pma_pdf_pages'
  101. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  102.                                                     //   - leave blank for no column comments/mime types
  103.                                                     //     DEFAULT: 'pma_column_info'
  104. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  105.                                                     //   - leave blank for no SQL query history
  106.                                                     //     DEFAULT: 'pma_history'
  107. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  108.                                                     // are up to date. This prevents compatibility
  109.                                                     // checks and thereby increases performance.
  110. $cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
  111. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  112.                                      = '';
  113. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  114.                                      = array();
  115.  
  116. // If you have more than one server configured, you can set $cfg['ServerDefault']
  117. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  118. // or set it to 0 to be given a list of servers without logging in
  119. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  120. // set to that server.
  121. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  122.  
  123. /**
  124.  * Other core phpMyAdmin settings
  125.  */
  126. $cfg['MaxDbList']               = 100;    // maximum number of db's displayed in left frame and databaes list
  127. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  128. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  129. $cfg['ForceSSL']                = FALSE;  // whether to force using https
  130. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  131. $cfg['MemoryLimit']             = 0;      // maximum allocated bytes (0 for no limit)
  132. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  133.                                           // locked tables (since MySQL 3.23.30)
  134. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  135. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  136. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  137. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  138. $cfg['LoginCookieValidity']     = 1800;   // validity of cookie login (in seconds)
  139. $cfg['LoginCookieStore']        = 0;      // how long login cookie should be stored (in seconds)
  140. $cfg['LoginCookieDeleteAll']    = TRUE;   // whether to delete all login cookies on logout
  141. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  142.                                           // or not
  143. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  144.                                           // even if one of the queries failed
  145. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  146.                                           // multiple-statement queries. See the libraries/import.php file for
  147.                                           // hardcoded defaults on how many queries a statement may contain!
  148. $cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth
  149.  
  150. // Left frame setup
  151. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  152.                                          // current tables in the left frame.
  153. $cfg['LeftFrameDBTree']       = TRUE;    // turn the select-based light menu into a tree
  154. $cfg['LeftFrameDBSeparator']  = '_';     // the separator to sub-tree the select-based light menu tree
  155. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  156.                                          // to split/nest tables into multiple categories
  157. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  158.                                          // up tables by the above Separator
  159. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  160. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  161. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_details_structure) instead of
  162.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  163.                                          // use the Aliases for nested descriptors, not the table itself.
  164.  
  165. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  166. $cfg['LeftLogoLink']          = 'http://www.phpmyadmin.net/';   // where should logo link point to
  167. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  168. $cfg['DisplayServersList']    = FALSE;  // server choice as links
  169.  
  170. // In the main frame, at startup...
  171. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  172.                                         // the pages about database details and table
  173.                                         // properties
  174. $cfg['ShowPhpInfo']           = FALSE;  // show php info link
  175. $cfg['ShowChgPassword']       = FALSE;  // show change password link
  176. $cfg['ShowCreateDb']          = TRUE;   // show create database form
  177. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  178.  
  179. // In browse mode...
  180. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  181. $cfg['NavigationBarIconic']   = 'both'; // Use icons instead of text for the navigation bar buttons
  182.                                         // and on right panel top menu (server db table) (TRUE|FALSE|'both')
  183. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  184. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  185. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  186.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  187.                                         // descending order for fields of type
  188.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  189.                                         // ascending order else-)
  190.  
  191. // In edit mode...
  192. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  193.                                         // valid values are:
  194.                                         //   FALSE  allow editing
  195.                                         //   'blob' allow editing except for BLOB fields
  196.                                         //   'all'  disallow editing
  197. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  198. $cfg['CharEditing']           = 'input';
  199.                                         // Which editor should be used for CHAR/VARCHAR fields:
  200.                                         //  input - allows limiting of input length
  201.                                         //  textarea - allows newlines in fields
  202. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time
  203.  
  204. $cfg['ForeignKeyDropdownOrder'] =       // Sort order for items in a foreign-key dropdown box.
  205.     array( 'content-id', 'id-content'); // 'content' is the referenced data, 'id' is the key value.
  206. $cfg['ForeignKeyMaxLimit'] = 100;       // A dropdown will be used if fewer items are present
  207.  
  208.  
  209. // For the export features...
  210. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  211. $cfg['GZipDump']              = TRUE;   // compression for
  212. $cfg['BZipDump']              = TRUE;   // dump files
  213. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  214.                                         // fly without need for much memory.
  215.                                         // If you encounter problems with
  216.                                         // created gzip/bzip2 files disable
  217.                                         // this feature.
  218.  
  219. // Tabs display settings
  220. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  221. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  222. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  223.                                         // (a value larger than 1 results in some information being hidden)
  224.  
  225. $cfg['DefaultTabServer']      = 'main.php';
  226.                                    // Possible values:
  227.                                    // 'main.php' = the welcome page
  228.                                    // (recommended for multiuser setups)
  229.                                    // 'server_databases.php' = list of databases
  230.                                    // 'server_status.php' = runtime information
  231.                                    // 'server_variables.php' = MySQL server variables
  232.                                    // 'server_privileges.php' = user management
  233.                                    // 'server_processlist.php' = process list
  234. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  235.                                    // Possible values:
  236.                                    // 'db_details_structure.php' = tables list
  237.                                    // 'db_details.php' = sql form
  238.                                    // 'db_search.php' = search query
  239.                                    // 'db_operations.php' = operations on database
  240. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  241.                                    // Possible values:
  242.                                    // 'tbl_properties_structure.php' = fields list
  243.                                    // 'tbl_properties.php' = sql form
  244.                                    // 'tbl_select.php' = select page
  245.                                    // 'tbl_change.php' = insert row page
  246.                                    // 'sql.php' = browse page
  247.  
  248. /**
  249.  * Export defaults
  250.  */
  251.  
  252. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml/xls/htmlexcel/htmlword/ods/odt
  253. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  254.  
  255. $cfg['Export']['asfile']                    = FALSE;
  256. $cfg['Export']['charset']                   = '';
  257. $cfg['Export']['onserver']                  = FALSE;
  258. $cfg['Export']['onserver_overwrite']        = FALSE;
  259. $cfg['Export']['remember_file_template']    = TRUE;
  260. $cfg['Export']['file_template_table']       = '__TABLE__';
  261. $cfg['Export']['file_template_database']    = '__DB__';
  262. $cfg['Export']['file_template_server']      = '__SERVER__';
  263.  
  264. $cfg['Export']['ods_columns']               = FALSE;
  265. $cfg['Export']['ods_null']                  = 'NULL';
  266.  
  267. $cfg['Export']['odt_structure']             = TRUE;
  268. $cfg['Export']['odt_data']                  = TRUE;
  269. $cfg['Export']['odt_columns']               = TRUE;
  270. $cfg['Export']['odt_relation']              = TRUE;
  271. $cfg['Export']['odt_comments']              = TRUE;
  272. $cfg['Export']['odt_mime']                  = TRUE;
  273. $cfg['Export']['odt_null']                  = 'NULL';
  274.  
  275. $cfg['Export']['htmlexcel_columns']         = FALSE;
  276. $cfg['Export']['htmlexcel_null']            = 'NULL';
  277.  
  278. $cfg['Export']['htmlword_structure']        = TRUE;
  279. $cfg['Export']['htmlword_data']             = TRUE;
  280. $cfg['Export']['htmlword_columns']          = FALSE;
  281. $cfg['Export']['htmlword_null']             = 'NULL';
  282.  
  283. $cfg['Export']['xls_columns']               = FALSE;
  284. $cfg['Export']['xls_null']                  = 'NULL';
  285.  
  286. $cfg['Export']['csv_columns']               = FALSE;
  287. $cfg['Export']['csv_null']                  = 'NULL';
  288. $cfg['Export']['csv_separator']             = ';';
  289. $cfg['Export']['csv_enclosed']              = '"';
  290. $cfg['Export']['csv_escaped']               = '\\';
  291. $cfg['Export']['csv_terminated']            = 'AUTO';
  292. $cfg['Export']['excel_columns']             = FALSE;
  293. $cfg['Export']['excel_null']                = 'NULL';
  294. $cfg['Export']['excel_edition']             = 'win'; // win/mac
  295.  
  296. $cfg['Export']['latex_structure']           = TRUE;
  297. $cfg['Export']['latex_data']                = TRUE;
  298. $cfg['Export']['latex_columns']             = TRUE;
  299. $cfg['Export']['latex_relation']            = TRUE;
  300. $cfg['Export']['latex_comments']            = TRUE;
  301. $cfg['Export']['latex_mime']                = TRUE;
  302. $cfg['Export']['latex_null']                = '\textit{NULL}';
  303. $cfg['Export']['latex_caption']             = TRUE;
  304. $cfg['Export']['latex_structure_caption']   = 'strLatexStructure';
  305. $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
  306. $cfg['Export']['latex_data_caption']        = 'strLatexContent';
  307. $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
  308. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  309. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';
  310.  
  311. $cfg['Export']['sql_structure']             = TRUE;
  312. $cfg['Export']['sql_data']                  = TRUE;
  313. $cfg['Export']['sql_compatibility']         = 'NONE';
  314. $cfg['Export']['sql_disable_fk']            = FALSE;
  315. $cfg['Export']['sql_use_transaction']       = FALSE;
  316. $cfg['Export']['sql_drop_database']         = FALSE;
  317. $cfg['Export']['sql_drop_table']            = FALSE;
  318. $cfg['Export']['sql_if_not_exists']         = FALSE;
  319. $cfg['Export']['sql_auto_increment']        = TRUE;
  320. $cfg['Export']['sql_backquotes']            = TRUE;
  321. $cfg['Export']['sql_dates']                 = FALSE;
  322. $cfg['Export']['sql_relation']              = FALSE;
  323. $cfg['Export']['sql_columns']               = TRUE;
  324. $cfg['Export']['sql_delayed']               = FALSE;
  325. $cfg['Export']['sql_ignore']                = FALSE;
  326. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  327. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  328. $cfg['Export']['sql_extended']              = TRUE;
  329. $cfg['Export']['sql_max_query_size']        = 50000;
  330. $cfg['Export']['sql_comments']              = FALSE;
  331. $cfg['Export']['sql_mime']                  = FALSE;
  332. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line
  333.  
  334. $cfg['Export']['pdf_structure']             = FALSE;
  335. $cfg['Export']['pdf_data']                  = TRUE;
  336. $cfg['Export']['pdf_report_title']          = '';
  337.  
  338. /**
  339.  * Import defaults
  340.  */
  341. $cfg['Import']['format'] = 'sql';
  342. $cfg['Import']['allow_interrupt'] = TRUE;
  343. $cfg['Import']['skip_queries'] = '0';
  344. $cfg['Import']['sql_compatibility'] = 'NONE';
  345. $cfg['Import']['csv_replace'] = FALSE;
  346. $cfg['Import']['csv_terminated'] = ';';
  347. $cfg['Import']['csv_enclosed'] = '"';
  348. $cfg['Import']['csv_escaped'] = '\\';
  349. $cfg['Import']['csv_new_line'] = 'auto';
  350. $cfg['Import']['csv_columns'] = '';
  351. $cfg['Import']['ldi_replace'] = FALSE;
  352. $cfg['Import']['ldi_terminated'] = ';';
  353. $cfg['Import']['ldi_enclosed'] = '"';
  354. $cfg['Import']['ldi_escaped'] = '\\';
  355. $cfg['Import']['ldi_new_line'] = 'auto';
  356. $cfg['Import']['ldi_columns'] = '';
  357. $cfg['Import']['ldi_local_option'] = 'auto'; // 'auto' for autodetection, TRUE or FALSE for forcing
  358.  
  359.  
  360. /**
  361.  * Link to the official MySQL documentation.
  362.  * Be sure to include no trailing slash on the path.
  363.  * See http://dev.mysql.com/doc/ for more information
  364.  * about MySQL manuals and their types.
  365.  */
  366. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
  367.  
  368. /**
  369.  * Type of MySQL documentation:
  370.  *   viewable   - "viewable online", current one used on MySQL website
  371.  *   searchable - "Searchable, with user comments"
  372.  *   chapters   - "HTML, one page per chapter"
  373.  *   chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
  374.  *   big        - "HTML, all on one page"
  375.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  376.  *   none       - do not show documentation links
  377.  */
  378. $cfg['MySQLManualType'] = 'viewable';
  379.  
  380.  
  381. /**
  382.  * PDF options
  383.  */
  384. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  385. $cfg['PDFDefaultPageSize']  = 'A4';
  386.  
  387.  
  388. /**
  389.  * Language and charset conversion settings
  390.  */
  391. // Default language to use, if not browser-defined or user-defined
  392. $cfg['DefaultLang'] = 'en-iso-8859-1';
  393.  
  394. // Default connection collation (used for MySQL >= 4.1)
  395. $cfg['DefaultConnectionCollation'] = 'utf8_unicode_ci';
  396.  
  397. // Force: always use this language - must be defined in
  398. //        libraries/select_lang.lib.php
  399. // $cfg['Lang']     = 'en-iso-8859-1';
  400.  
  401. // Regullar expression to limit listed languages, eg. '^(cs|en)' for Czech and
  402. // English only
  403. $cfg['FilterLanguages'] = '';
  404.  
  405. // Default charset to use for recoding of MySQL queries, does not take
  406. // any effect when charsets recoding is switched off by
  407. // $cfg['AllowAnywhereRecoding'] or in language file
  408. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  409. $cfg['DefaultCharset'] = 'iso-8859-1';
  410.  
  411. // Allow charset recoding of MySQL queries, must be also enabled in language
  412. // file to make harder using other language files than unicode.
  413. // Default value is FALSE to avoid problems on servers without the iconv
  414. // extension and where dl() is not supported
  415. $cfg['AllowAnywhereRecoding'] = FALSE;
  416.  
  417. // You can select here which functions will be used for charset conversion.
  418. // Possible values are:
  419. //      auto   - automatically use available one (first is tested iconv, then
  420. //               recode)
  421. //      iconv  - use iconv or libiconv functions
  422. //      recode - use recode_string function
  423. $cfg['RecodingEngine'] = 'auto';
  424.  
  425. // Specify some parameters for iconv used in charset conversion. See iconv
  426. // documentation for details:
  427. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
  428. $cfg['IconvExtraParams'] = '//TRANSLIT';
  429.  
  430. // Available charsets for MySQL conversion. currently contains all which could
  431. // be found in lang/* files and few more.
  432. // Charsets will be shown in same order as here listed, so if you frequently
  433. // use some of these move them to the top.
  434. $cfg['AvailableCharsets'] = array(
  435.     'iso-8859-1',
  436.     'iso-8859-2',
  437.     'iso-8859-3',
  438.     'iso-8859-4',
  439.     'iso-8859-5',
  440.     'iso-8859-6',
  441.     'iso-8859-7',
  442.     'iso-8859-8',
  443.     'iso-8859-9',
  444.     'iso-8859-10',
  445.     'iso-8859-11',
  446.     'iso-8859-12',
  447.     'iso-8859-13',
  448.     'iso-8859-14',
  449.     'iso-8859-15',
  450.     'windows-1250',
  451.     'windows-1251',
  452.     'windows-1252',
  453.     'windows-1256',
  454.     'windows-1257',
  455.     'koi8-r',
  456.     'big5',
  457.     'gb2312',
  458.     'utf-16',
  459.     'utf-8',
  460.     'utf-7',
  461.     'x-user-defined',
  462.     'euc-jp',
  463.     'ks_c_5601-1987',
  464.     'tis-620',
  465.     'SHIFT_JIS'
  466. );
  467.  
  468. /**
  469.  * Customization & design
  470.  *
  471.  * The graphical settings are now located in themes/themename/layout.inc.php
  472.  */
  473.  
  474. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  475.                                             // (used when LeftFrameLight is FALSE)
  476.                                             // see also LeftPointerColor
  477.                                             // in layout.inc.php
  478.  
  479. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  480.                                             // see also BrowsePointerColor
  481.                                             // in layout.inc.php
  482.  
  483. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  484.                                             // see also BrowseMarkerColor
  485.                                             // in layout.inc.php
  486.  
  487. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  488.                                             // (this value will be emphasized (*2) for sql
  489.                                             // query textareas and (*1.25) for query window)
  490. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  491. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  492. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  493. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  494. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  495. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  496. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  497. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  498.                                             // (or at the top with vertical browse)
  499. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  500.                                             // (or at the bottom with vertical browse)
  501. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  502.                                             // (horizontal|vertical|horizontalflipped)
  503. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  504.                                             // creating columns (tbl_properties)
  505.                                             // (horizontal|vertical)
  506.  
  507. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  508.                                             // NOTE: CSS only works in IE browsers!
  509. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  510. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  511. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  512.  
  513. $cfg['EditInWindow']        = TRUE;         // Set to TRUE if Edit link should open the query to edit in the query window (assuming Javascript is enabled), and to FALSE if we should edit in the right panel
  514. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  515. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  516. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  517.                                             // If FALSE, this utilizes JS-routines to display
  518.                                             // query history (lost by window close)
  519. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  520.                                             // (sql|files|history|full)
  521. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  522.                                             // should be kept?
  523. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  524. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  525.                                             // table rows.
  526. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  527.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  528.  
  529. $cfg['NaturalOrder']        = TRUE;         // Sort table and database in natural order
  530.  
  531.  
  532. //-----------------------------------------------------------------------------
  533. // custom-setup by mkkeck: 2004-05-04
  534. //    some specials for new icons and scrollings
  535. // FIXME:
  536. // 2004-05-08 rabus: We need to rearrange these variables.
  537.  
  538. // Window title settings
  539. $cfg['TitleTable']          = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
  540. $cfg['TitleDatabase']       = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
  541. $cfg['TitleServer']         = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
  542. $cfg['TitleDefault']        = '@HTTP_HOST@ | @PHPMYADMIN@';
  543.  
  544. $cfg['ErrorIconic']          = TRUE;    // show some icons for warning, error and information messages (true|false)?
  545. $cfg['MainPageIconic']       = TRUE;    // show icons in list on main page and on menu tabs (true|false)?
  546. $cfg['ReplaceHelpImg']       = TRUE;    // show help button instead of strDocu (true|false)?
  547.  
  548. // theme manager
  549. $cfg['ThemePath']           = './themes';    // using themes manager please set up here the path to 'themes'
  550.                                              // else leave empty
  551. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  552.                                              // set it to true, else set it to false (default is false);
  553. $cfg['ThemeDefault']        = 'original';         // set up default theme, if ThemePath not empty
  554.                                              // you can set up here an valid path to themes or 'original' for
  555.                                              // the original pma-theme
  556. $cfg['ThemePerServer']      = FALSE;         // allow different theme for each configured server
  557.  
  558. //-----------------------------------------------------------------------------
  559.  
  560.  
  561. /**
  562.  * Default queries
  563.  * %d will be replaced by the database name.
  564.  * %t will be replaced by the table name.
  565.  * %f will be replaced by a list of field names.
  566.  * (%t and %f only applies to DefaultQueryTable)
  567.  */
  568. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  569. $cfg['DefaultQueryDatabase'] = '';
  570.  
  571. /**
  572.  * SQL Query box settings
  573.  * These are the links display in all of the SQL Query boxes
  574.  */
  575. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  576. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  577. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  578. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  579. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page
  580.  
  581.  
  582. /**
  583.  * Webserver upload/save/import directories
  584.  */
  585. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  586.                                             // phpMyAdmin. For example './upload'. Leave empty for
  587.                                             // no upload directory support. Use %u for username
  588.                                             // inclusion.
  589. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  590.                                             // server. For example './save'. Leave empty for no save
  591.                                             // directory support. Use %u for username inclusion.
  592. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  593.                                             // docSQL files from that directory. For example
  594.                                             // './docSQL'. Leave empty for no docSQL import support.
  595. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  596.                                             // This is needed for MS Excel export, see documentation
  597.                                             // how to enable that.
  598.  
  599.  
  600. /**
  601.  * Misc. settings
  602.  */
  603. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  604.                                             // does autodetection, which is a bit expensive for
  605.                                             // php < 4.3.0, but it is the only safe vay how to
  606.                                             // determine GD version.
  607. $cfg['TrustedProxies']        = array();    // List of trusted proxies for IP allow/deny
  608.  
  609. /**
  610.  * SQL Parser Settings
  611.  */
  612. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  613. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  614. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  615. // The graphical settings are now located in themes/themename/layout.inc.php
  616.  
  617. /**
  618.  * If you wish to use the SQL Validator service, you should be
  619.  * aware of the following:
  620.  * All SQL statements are stored anonymously for statistical purposes.
  621.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  622.  * All rights reserved.
  623.  */
  624. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  625. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  626. $cfg['SQLValidator']['password'] = '';      // Password for username
  627.  
  628. /**
  629.  * Developers ONLY!
  630.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  631.  */
  632. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  633. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  634. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  635.                                             // Anything below the threshold is not displayed
  636.  
  637.  
  638. /**
  639.  * MySQL settings
  640.  */
  641. // Column types;
  642. // varchar, tinyint, text and date are listed first, based on estimated popularity
  643. $cfg['ColumnTypes'] = array(
  644.    'VARCHAR',
  645.    'TINYINT',
  646.    'TEXT',
  647.    'DATE',
  648.    'SMALLINT',
  649.    'MEDIUMINT',
  650.    'INT',
  651.    'BIGINT',
  652.    'FLOAT',
  653.    'DOUBLE',
  654.    'DECIMAL',
  655.    'DATETIME',
  656.    'TIMESTAMP',
  657.    'TIME',
  658.    'YEAR',
  659.    'CHAR',
  660.    'TINYBLOB',
  661.    'TINYTEXT',
  662.    'BLOB',
  663.    'MEDIUMBLOB',
  664.    'MEDIUMTEXT',
  665.    'LONGBLOB',
  666.    'LONGTEXT',
  667.    'ENUM',
  668.    'SET',
  669.    'BOOL'
  670. );
  671.  
  672. // Attributes
  673. // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically
  674. // for MySQL >= 4.1.2, in libraries/tbl_properties.inc.php
  675.  
  676. $cfg['AttributeTypes'] = array(
  677.    '',
  678.    'BINARY',
  679.    'UNSIGNED',
  680.    'UNSIGNED ZEROFILL'
  681. );
  682.  
  683. // Available functions
  684. if ($cfg['ShowFunctionFields']) {
  685.     $cfg['Functions'] = array(
  686.        'ASCII',
  687.        'CHAR',
  688.        'SOUNDEX',
  689.        'LCASE',
  690.        'UCASE',
  691.        'NOW',
  692.        'PASSWORD',
  693.        'OLD_PASSWORD',
  694.        'MD5',
  695.        'SHA1',
  696.        'ENCRYPT',
  697.        'COMPRESS',
  698.        'UNCOMPRESS',
  699.        'RAND',
  700.        'LAST_INSERT_ID',
  701.        'COUNT',
  702.        'AVG',
  703.        'SUM',
  704.        'CURDATE',
  705.        'CURTIME',
  706.        'UTC_DATE',
  707.        'UTC_TIME',
  708.        'UTC_TIMESTAMP',
  709.        'FROM_DAYS',
  710.        'FROM_UNIXTIME',
  711.        'PERIOD_ADD',
  712.        'PERIOD_DIFF',
  713.        'TO_DAYS',
  714.        'UNIX_TIMESTAMP',
  715.        'USER',
  716.        'WEEKDAY',
  717.        'CONCAT'
  718.     );
  719.  
  720.     // Which column types will be mapped to which Group?
  721.     $cfg['RestrictColumnTypes'] = array(
  722.        'VARCHAR'      => 'FUNC_CHAR',
  723.        'TINYINT'      => 'FUNC_NUMBER',
  724.        'TEXT'         => 'FUNC_CHAR',
  725.        'DATE'         => 'FUNC_DATE',
  726.        'SMALLINT'     => 'FUNC_NUMBER',
  727.        'MEDIUMINT'    => 'FUNC_NUMBER',
  728.        'INT'          => 'FUNC_NUMBER',
  729.        'BIGINT'       => 'FUNC_NUMBER',
  730.        'FLOAT'        => 'FUNC_NUMBER',
  731.        'DOUBLE'       => 'FUNC_NUMBER',
  732.        'DECIMAL'      => 'FUNC_NUMBER',
  733.        'DATETIME'     => 'FUNC_DATE',
  734.        'TIMESTAMP'    => 'FUNC_DATE',
  735.        'TIME'         => 'FUNC_DATE',
  736.        'YEAR'         => 'FUNC_DATE',
  737.        'CHAR'         => 'FUNC_CHAR',
  738.        'TINYBLOB'     => 'FUNC_CHAR',
  739.        'TINYTEXT'     => 'FUNC_CHAR',
  740.        'BLOB'         => 'FUNC_CHAR',
  741.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  742.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  743.        'LONGBLOB'     => 'FUNC_CHAR',
  744.        'LONGTEXT'     => 'FUNC_CHAR',
  745.        'ENUM'         => '',
  746.        'SET'          => ''
  747.     );
  748.  
  749.     // Map above defined groups to any function
  750.     $cfg['RestrictFunctions'] = array(
  751.         'FUNC_CHAR'   => array(
  752.             'ASCII',
  753.             'CHAR',
  754.             'SOUNDEX',
  755.             'LCASE',
  756.             'UCASE',
  757.             'PASSWORD',
  758.             'OLD_PASSWORD',
  759.             'MD5',
  760.             'SHA1',
  761.             'ENCRYPT',
  762.             'COMPRESS',
  763.             'UNCOMPRESS',
  764.             'LAST_INSERT_ID',
  765.             'USER',
  766.             'CONCAT'
  767.         ),
  768.  
  769.         'FUNC_DATE'   => array(
  770.             'NOW',
  771.             'CURDATE',
  772.             'CURTIME',
  773.             'FROM_DAYS',
  774.             'FROM_UNIXTIME',
  775.             'PERIOD_ADD',
  776.             'PERIOD_DIFF',
  777.             'TO_DAYS',
  778.             'UNIX_TIMESTAMP',
  779.             'UTC_DATE',
  780.             'UTC_TIME',
  781.             'UTC_TIMESTAMP',
  782.             'WEEKDAY'
  783.         ),
  784.  
  785.         'FUNC_NUMBER' => array(
  786.             'ASCII',
  787.             'CHAR',
  788.             'MD5',
  789.             'SHA1',
  790.             'ENCRYPT',
  791.             'RAND',
  792.             'LAST_INSERT_ID',
  793.             'UNIX_TIMESTAMP',
  794.             'COUNT',
  795.             'AVG',
  796.             'SUM'
  797.         )
  798.     );
  799.  
  800.     // Default functions for above defined groups
  801.     $cfg['DefaultFunctions'] = array(
  802.         'FUNC_CHAR'         => '',
  803.         'FUNC_DATE'         => '',
  804.         'FUNC_NUMBER'       => '',
  805.         'first_timestamp'   => 'NOW'
  806.     );
  807.  
  808.  
  809. } // end if
  810.  
  811. // Search operators
  812. $cfg['NumOperators'] = array(
  813.    '=',
  814.    '>',
  815.    '>=',
  816.    '<',
  817.    '<=',
  818.    '!=',
  819.    'LIKE',
  820.    'NOT LIKE'
  821. );
  822.  
  823. $cfg['TextOperators'] = array(
  824.    'LIKE',
  825.    'LIKE %...%',
  826.    'NOT LIKE',
  827.    '=',
  828.    '!=',
  829.    'REGEXP',
  830.    'NOT REGEXP'
  831. );
  832.  
  833. $cfg['EnumOperators'] = array(
  834.    '=',
  835.    '!='
  836. );
  837.  
  838. $cfg['SetOperators'] = array(
  839.    'IN',
  840.    'NOT IN'
  841. );
  842.  
  843. $cfg['NullOperators'] = array(
  844.    'IS NULL',
  845.    'IS NOT NULL'
  846. );
  847.  
  848. $cfg['UnaryOperators'] = array(
  849.    'IS NULL'     => 1,
  850.    'IS NOT NULL' => 1
  851. );
  852.  
  853. ?>
  854.